package com.tensquare.friend.client;

import com.tensquare.friend.client.impl.FriendClientimpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "tensquare-user",fallback = FriendClientimpl.class)
public interface FriendClient  {
    //1.更新关注数
    @PostMapping("/user/incfollow/{userid}/{x}")
    public void addfollow(@PathVariable("userid") String userid, @PathVariable("x") int x);


    //2更新粉丝数
    @PostMapping("/user/incfans/{userid}/{x}")
    public void addfans(@PathVariable("userid") String userid,@PathVariable("x") int x);

}
